using System;

namespace mfNordic.Radios
{
    /// <summary>
    /// Represents the Transmit observation register
    /// </summary>
    public class TransmitObservation
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Status"/> class
        /// </summary>
        /// <param name="lostPacketCount">The lost packet count</param>
        /// <param name="retransmitPacketCount">The packet retransmit count</param>
        public TransmitObservation(Int32 lostPacketCount, Int32 retransmitPacketCount)
        {
            LostPacketCount = (Byte) lostPacketCount;
            RetransmitPacketCount = (Byte) retransmitPacketCount;
        }

        /// <summary>
        /// Count lost packets. The counter is overflow protected to 15, and discontinues at max until reset.
        /// </summary>
        public Byte LostPacketCount { get; private set; }

        /// <summary>
        /// Count retransmitted packets. The counter is reset when transmission of a new packet starts.
        /// </summary>
        public Byte RetransmitPacketCount { get; private set; } 
    }
}